import React, {Component} from 'react'
import {View, Text, StyleSheet} from 'react-native'
import AttachmentManager from '../common/attachment_manager'
import ContentLine from '../common/content_line'

class AnswerDetail extends Component {
    render () {
        const answer = this.props.answer
        return (
            <View>
                <ContentLine name={'作业时间:'} content={answer.date} />
                <ContentLine name={'作业内容:'} content={answer.content} />
                <View>
                    <AttachmentManager attachments={answer.attachments} />
                </View>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    answer_column: {
        alignItems: 'center'
    },

    answer_content: {
        alignItems: 'center',
        flex: 1
    }
  });

export default AnswerDetail